package com.api.rc.dao;

import com.api.core.ApiMapper;
import com.api.rc.model.RoomPlayer;
import com.api.rc.model.temp.PlayerMatchHistory;
import com.api.rc.vo.PlayerVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author RenQiang
 * @date 2021/7/12
 */
@Mapper
public interface RoomPlayerMapper extends ApiMapper<RoomPlayer> {
    /**
     * 根据房间编号获取玩家详情
     *
     * @param roomId
     * @return
     */
    List<PlayerVo> getPlayerDetail(@Param("roomId") Long roomId);

    /**
     * 查询本房间内所有玩家的所有对局历史
     *
     * @param roomId
     * @return
     */
    List<PlayerMatchHistory> findPlayerHistoryByRoomId(@Param("roomId") Long roomId);
}
